mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:02:45 +00:00 
			
		
		
		
	LibWeb: Stub out Document.cookie
We don't get/set anything, but at least scripts that access document cookies can now progress further. :^)
This commit is contained in:
		
							parent
							
								
									3596c42deb
								
							
						
					
					
						commit
						36ea9fbd9e
					
				
					 3 changed files with 16 additions and 0 deletions
				
			
		|  | @ -696,4 +696,15 @@ void Document::completely_finish_loading() | |||
|     dispatch_event(DOM::Event::create(HTML::EventNames::load)); | ||||
| } | ||||
| 
 | ||||
| String Document::cookie() const | ||||
| { | ||||
|     // FIXME: Support cookies!
 | ||||
|     return {}; | ||||
| } | ||||
| 
 | ||||
| void Document::set_cookie(String) | ||||
| { | ||||
|     // FIXME: Support cookies!
 | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
|  | @ -73,6 +73,9 @@ public: | |||
| 
 | ||||
|     virtual ~Document() override; | ||||
| 
 | ||||
|     String cookie() const; | ||||
|     void set_cookie(String); | ||||
| 
 | ||||
|     bool should_invalidate_styles_on_attribute_changes() const { return m_should_invalidate_styles_on_attribute_changes; } | ||||
|     void set_should_invalidate_styles_on_attribute_changes(bool b) { m_should_invalidate_styles_on_attribute_changes = b; } | ||||
| 
 | ||||
|  |  | |||
|  | @ -11,6 +11,8 @@ interface Document : Node { | |||
| 
 | ||||
|     readonly attribute Window? defaultView; | ||||
| 
 | ||||
|     attribute DOMString cookie; | ||||
| 
 | ||||
|     Element? getElementById(DOMString id); | ||||
|     ArrayFromVector getElementsByName(DOMString name); | ||||
|     ArrayFromVector getElementsByTagName(DOMString tagName); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling